package goActorsCommon

import (
	"os"
)

// Interface that wraps the basic message exchange methods.
type Messaging interface {
	// Sends a message to a goActor identified by a GoActorPid object.
	// Returns an error if the message can't be delivered.
	Send ( message []byte, recipient GoActorPid ) os.Error
	// Blocks untill a message is received.
	// Returns a Message object.
	Receive () Message
}
